﻿using FlyingEye.ESApplication;
using Microsoft.AspNetCore.Mvc;
using System.Threading.Tasks;
using Volo.Abp.AspNetCore.Mvc;

namespace FlyingEye.Controllers
{
    /// <summary>
    /// 搅拌工序控制器。
    /// </summary>
    [Route("[controller]")]
    public class MixingProcessController : AbpController
    {
        private readonly IESApplicationService _esService;

        public MixingProcessController(IESApplicationService service)
        {
            _esService = service;
        }

        /// <summary>
        /// 上传中控信息接口。
        /// </summary>
        [HttpPost]
        public async Task<ActionResult<bool>> PostMixingControlCentreInfo(MixingControlCentrelInfo dto)
        {
            return await _esService.RecordMixingControlCentreInfoAsync(dto);
        }
    }
}
